package com.sfc.spiderweb.util;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class Page {

    @ApiModelProperty(value = "当前页", required = true, dataType = "1", example = "1")
    @NotNull(message = "current不能为空|current is not null")
    private Integer current;

    @ApiModelProperty(value = "每页数量", required = true, dataType = "10", example = "10")
    @NotNull(message = "size不能为空|size is not null")
    private Integer size;

}
